<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>input 값 전송</title>
</head>
<body>
<form action="form_ok02.jsp" method="get">
<!-- <input type="checkbox" name="cb1" value="사과" checked>사과</br>
<input type="checkbox" name="cb2" value="배">배</br>
<input type="checkbox" name="cb3" value="감">감</br>
<input type="checkbox" name="cb4" value="수박">귤</br>
 -->
<!-- 같은 이름으로 묶으는 것을 컨트롤 배열이라 하는데, 받는 방법도 달라진다. -->
<input type="checkbox" name="cb" value="사과" checked>사과</br>
<input type="checkbox" name="cb" value="배">배</br>
<input type="checkbox" name="cb" value="감">감</br>
<input type="checkbox" name="cb" value="수박">귤</br>
<input type="submit" value="전송"><br><br><br>
<!-- value가 없으면 on이라는 말만 나온다. http://localhost/jspEx03JDBC/form_ok02.jsp?cb1=on&cb3=on -->
<!-- value가 있을때 unicode로 넘어간다.http://localhost/jspEx03JDBC/form_ok02.jsp?cb1=%EC%82%AC%EA%B3%BC&cb3=%EA%B0%90 -->
===========================================================================
<input type="radio" name="r" value="사과" checked>사과</br>
<input type="radio" name="r" value="나물">나물</br>
<input type="radio" name="r" value="청">박청</br>
<input type="radio" name="r" value="수박">수박</br>
<input type="submit" value="전송"><br><br><br>
=============================================================================<br><br><br>
<!-- 
multiple(x) : getParameter()
multiple(o) : getParameterValues()
 -->
<select name="s" size="8" multiple>
	<option value="사과">사과</option>
	<option value="배">배</option>
	<option value="감">감</option>
	<option value="귤">귤</option>
	<option value="오렌지">오렌지</option>
</select>
<input type="submit" value="전송"><br><br><br>


<!-- 받아줄때 form_ok02.jsp -->
</form>

</body>
</html>